package com.snc.controller.system;

import com.snc.controller.index.BaseController;
import com.snc.entity.UserLoginFormMap;
import com.snc.plugin.PageView;
import com.snc.util.Common;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author lanyuan 2015-11-19
 * @Email: mmm333zzz520@163.com
 * @version 4.0v
 */
@Controller
@RequestMapping("/userlogin/")
public class UserLoginController extends BaseController {

	@RequestMapping("listUI")
	public String listUI(Model model) throws Exception {
		return Common.BACKGROUND_PATH + "/system/userlogin/list";
	}

	@ResponseBody
	@RequestMapping("findByPage")
	public PageView findByPage(String pageNow,
			String pageSize) throws Exception {
		UserLoginFormMap userLoginFormMap = getFormMap(UserLoginFormMap.class);
		pageView=userLoginFormMap.findByPage(getPageView(pageNow, pageSize));
		return pageView;
	}

}